<script type="text/javascript" src="${base}/scripts/jsgl/xsjsd_content.js"></script>

<form id="form_xsjsd" action="${base}/sfgl/xsjsd/xsjsd" method="post" style="height: 100%">
    <input id="xsjsd_id" name="xsjsd.id" type="hidden" value="${(xsjsd.id)!''}"/>
    <input name="xsjsd.type" type="hidden" value="${(xsjsd.type)!''}"/>

    <div id="xsjsd_tabs" class="easyui-tabs" fit="true">
        <div title="销售单信息">
            <table style="width:100%;" class="tb tab-t">
                <col width="10%"/>
                <col width="35%"/>
                <col width="10%"/>
                <col width="35%"/>
                <div style="height: 20px;"/>
                <tr>
                <#--<th>带总部结算：</th>-->
                <#--<td>-->
                <#--<input type="checkbox" name="xsjsd.zbjs" id="xsjsd_zbjs" value="true"-->
                <#--<#if xsjsd?? && xsjsd.cggs?? && xsjsd.gs?? &&-->
                <#--xsjsd.cggs.id!=xsjsd.gs.id>checked</#if>/>-->
                <#--</td>-->
                    <th>结算单号：</th>
                    <td colspan="3">
                        <input id="xsjsd_jsdh" name="xsjsd.jsdh" type="hidden" class="input-text readonly"
                               readonly="readonly" value="${(xsjsd.jsdh)!}"/>
                        <span>${(xsjsd.jsdh)!}</span>
                    </td>
                <#--<th>销售公司：</th>-->
                <#--<td>-->
                <#--<input id="xsjsd_xsgs" name="xsjsd.cggs.id" style="width:272px;" type="text"-->
                <#--value="${(xsjsd.cggs.id)!(gsId)}"-->
                <#--class="easyui-combotree input-text"/>-->
                <#--</td>-->
                </tr>
                <tr>
                    <th>申&nbsp;&nbsp;请&nbsp;人：</th>
                    <td>
                        <input id="xsjsd_spr" name="xsjsd.sqr.id" type="text" style="width:290px;"
                               value="${(xsjsd.sqr.id)!(sprId)}"
                               class="easyui-combobox input-text"
                               data-options="url:'${base}/sys/yg/ygSearchFromId?ygId=${(xsjsd.spr.id)!(sprId)}',valueField:'id',textField:'xm',panelHeight:'50',editable:'false'"
                                />
                    </td>
                    <th>申报公司：</th>
                <#--   <td>
                       <input type="hidden" id="xsjsd_content_gs_id" value="${(xsjsd.gs.id)!}"/>
                       <input type="hidden" id="xsjsd_content_gs_jc" value="${(xsjsd.gs.qc)!}"/>
                       <input id="xsjsd_gs" name="xsjsd.gs.id" type="text" style="width:272px;"
                              value="${(xsjsd.gs.id)!''}"
                              class="input-text" required="true"/>
                   </td>-->
                    <td>
                        <input id="xsjsd_sbgs_id"  type="hidden" name="xsjsd.gs.id" class=" input-text" value="${(xsjsd.gs.id)!}"
                                >
                        <input type="text"  class=" input-text" value="${(xsjsd.gs.qc)!} " readonly="readonly"
                               style="width:270px;"      >
                    </td>
                </tr>
                <tr>
                    <th>客&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;户：</th>
                    <td>
                    <#--<input type="hidden" id="xsjsd_content_kh_id" value="${(xsjsd.glqy.id)!}"/>-->
                    <#--<input type="hidden" id="xsjsd_content_kh_jc" value="${(xsjsd.glqy.jc)!}"/>-->
                    <#--<input id="xsjsd_content_glqy" name="xsjsd.glqy.id" type="text" style="width:288px;" value="${(xsjsd.glqy.id)!''}" class="input-text" required="true"/>-->
                        <input id="xsjsd_content_glqy" name="xsjsd.glqy.id" type="text" style="width:290px;"
                               class="easyui-combobox input-text" value="${(xsjsd.glqy.id)!''}"
                               data-options="url:'${base}/xsgl/xsdgl/xsdKhList?xsgsId=${(xsjsd.cggs.id)!(gsId)}&sbgsId=${(xsjsd.sbgs.id)!(gsId)}',valueField:'id',textField:'jc',panelHeight:'200',editable:'true'">
                    </td>
                    <th>纳&nbsp;税&nbsp;&nbsp;号：</th>
                    <td><input id="xsjsd_glqy_qyfr_nsh" name="xsjsd.glqy.qyfr.nsh" style="width:270px;"
                               readonly="readonly" class="input-text" type="text"
                               value="${(xsjsd.glqy.qyfr.nsh)!''}"/></td>
                </tr>
                <tr>
                    <th>发票种类：</th>
                    <td>
                        <label><input name="xsjsd.fpzl" type="radio" value="0" checked="checked"

                                      style="vertical-align: middle;"/>&nbsp;增&nbsp;&nbsp;票</label>
                        <label><input name="xsjsd.fpzl" type="radio" value="1"
                                      <#if (xsjsd.fpzl)?? && xsjsd.fpzl==1>checked</#if>
                                      style="vertical-align: middle;"/>&nbsp;普&nbsp;&nbsp;票
                        </label>
                        <label><input name="xsjsd.fpzl" type="radio" value="2"
                                      <#if (xsjsd.fpzl)?? && xsjsd.fpzl==2>checked</#if>
                                      style="vertical-align: middle;"/>&nbsp;其&nbsp;&nbsp;他</label>
                        <label><input name="xsjsd.fpzl" type="radio" value="3"
                                      <#if (xsjsd.fpzl)?? && xsjsd.fpzl==3>checked</#if>
                                      style="vertical-align: middle;"/>&nbsp;另&nbsp;开&nbsp;票
                        </label>
                    </td>
                    <th>发票张数：</th>
                    <td>
                        <input name="xsjsd.fpzs" class="input-text" style="width:270px;" type="text"
                               value="${(xsjsd.fpzs)!''}"/>
                    </td>
                </tr>
                <tr>
                    <th>发票号码：</th>
                    <td>
                        <input id="xsjsd_hm" name="xsjsd.hm" class="input-text" style="width:290px;" type="text"
                               value="${(xsjsd.hm)!''}"/>
                    </td>
                    <th>发票总额：</th>
                    <td>
                        <input id="xsjsd_fpze" name="xsjsd.fpze" readonly="readonly" class="input-text"
                               style="width:270px;background-color:#F8F8FF;" type="text"
                               data-options="min: 0, groupSeparator: ',',precision: 4"
                               value="${(xsjsd.fpze)!''}"/>
                    </td>
                </tr>
                <tr>
                    <th>备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注：</th>
                    <td colspan="3">
                        <textarea style="width:800px;height: 101px" rows="2" class="textarea"
                                  name="xsjsd.bz">${(xsjsd.bz)!}</textarea>
                    </td>
                </tr>
            </table>
        </div>
        <div title="销售单明细">
            <table style="width:100%;" class="tb tab-t">
                <tr>
                    <td colspan="8">
                        <div id="xsd_tool" style="height:auto;">
                            <ul class="niu">
                                <li><a href="javascript:void(0)" id="btn_xsd_search" plain="true">新增</a></li>
                                <li><a href="javascript:void(0)" id="btn_xsd_del" class="del" plain="true">删除</a></li>
                                <li id="sfjstx_id" style="display: block"><input type="checkbox" id="btn_xsjsd_txx"/>是否结算贴息
                                </li>
                                <li id="sfjsdlf_id" style="display: block"><input type="checkbox" id="btn_xsjsd_dlf"/>是否结算代理费
                                </li>
                            </ul>
                        </div>
                    </td>
                </tr>
                <table id="grid_xsd"></table>
                <table style="height: 10px;"></table>
                <tr>
                    <th>&nbsp;&nbsp;&nbsp;<span style="color: red;font-weight: bold">贴息金额(元)：</span></th>
                    <td>
                        <input id="xsjsd_txje" name="txje" class="input-text-border-zero" readonly="readonly"
                               data-options="min: 0, groupSeparator: ',',precision: 2"
                               style="width:80px;" type="text" value="0"/>
                    </td>
                    <th>&nbsp;&nbsp;&nbsp;<span style="color: red;font-weight: bold">未结算代理费金额(元)：</span></th>
                    <td>
                        <input id="xsjsd_dlfje" name="txje" class="input-text-border-zero" readonly="readonly"
                               data-options="min: 0, groupSeparator: ',',precision: 2"
                               style="width:80px;" type="text" value="0"/>
                    </td>
                <#--<th>&nbsp;&nbsp;&nbsp;<span style="color: red;font-weight: bold">资金占用费(元)：</span></th>
                <td>
                    <input id="xsjsd_zjzyfje" name="txje" class="input-text-border-zero" readonly="readonly"
                           data-options="min: 0, groupSeparator: ',',precision: 4"
                           style="width:80px;" type="text" value="0"/>
                </td>-->
                    <th>&nbsp;&nbsp;&nbsp;不含税金额(元)：</th>
                    <td>
                        <input id="xsjsd_je" name="xsjsd.je" class="input-text-border-zero" readonly="readonly"
                               style="width:80px;margin-bottom:-5px;background-color:#F8F8FF;" type="text"
                               value="${(xsjsd.je)!0}"/>
                    </td>
                    <th>&nbsp;&nbsp;&nbsp;税&nbsp;&nbsp;额(元)：</th>
                    <td>
                        <input id="xsjsd_se" name="xsjsd.se" class="input-text-border-zero" readonly="readonly"
                               style="width:80px;margin-bottom:-5px;background-color:#F8F8FF;" type="text"
                               value="${(xsjsd.se)!0}"/>
                    </td>
                <#-- <th>&nbsp;&nbsp;&nbsp;面&nbsp;&nbsp;额(元)：</th>
                 <td>
                     <input id="xsjsd_me" name="xsjsd.me" readonly="readonly" class="input-text-border-zero"
                            type="text" style="width:150px;margin-bottom:-5px;background-color:#F8F8FF;"
                            value="${(xsjsd.me)!0}"/>
                 </td>-->
                </tr>
            </table>
        </div>
    </div>

</form>

